<!DOCTYPE html>

<link href="../../web/images/skin.css" rel="stylesheet" type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../web/css/talble_style.css" rel="stylesheet" type="text/css" />
<script src="../../web/js/admin.js" type="text/javascript"></script>
<style type="text/css">
body {  

font-family: 'trebuchet MS', 'Lucida sans', Arial;  
font-size: 14px;  
color: #444;  
}  
  
table {  
font-size: 15px;
*border-collapse: collapse; /* IE7 and lower */  
border-spacing: 0;  
width: 100%;  
}  
  
.bordered {  
border: solid #ccc 1px;  
-moz-border-radius: 6px;  
-webkit-border-radius: 6px;  
border-radius: 6px;  
-webkit-box-shadow: 0 1px 1px #ccc;  
-moz-box-shadow: 0 1px 1px #ccc;  
box-shadow: 0 1px 1px #ccc;  
}  
  
.bordered tr:hover {  
background: #fbf8e9;  
-o-transition: all 0.1s ease-in-out;  
-webkit-transition: all 0.1s ease-in-out;  
-moz-transition: all 0.1s ease-in-out;  
-ms-transition: all 0.1s ease-in-out;  
transition: all 0.1s ease-in-out;  
}  
  
.bordered td, .bordered th {  
border-left: 1px solid #ccc;  
border-top: 1px solid #ccc;  
padding: 5px;  
text-align: center;  
}  
  
.bordered th {  
background-color: #dce9f9;  
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));  
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: linear-gradient(top, #ebf3fc, #dce9f9);  
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
border-top: none;  
text-shadow: 0 1px 0 rgba(255,255,255,.5);  
}  
  
.bordered td:first-child, .bordered th:first-child {  
border-left: none;  
}  
  
.bordered th:first-child {  
-moz-border-radius: 6px 0 0 0;  
-webkit-border-radius: 6px 0 0 0;  
border-radius: 6px 0 0 0;  
}  
  
.bordered th:last-child {  
-moz-border-radius: 0 6px 0 0;  
-webkit-border-radius: 0 6px 0 0;  
border-radius: 0 6px 0 0;  
}  
  
.bordered th:only-child{  
-moz-border-radius: 6px 6px 0 0;  
-webkit-border-radius: 6px 6px 0 0;  
border-radius: 6px 6px 0 0;  
}  
  
.bordered tr:last-child td:first-child {  
-moz-border-radius: 0 0 0 6px;  
-webkit-border-radius: 0 0 0 6px;  
border-radius: 0 0 0 6px;  
}  
  
.bordered tr:last-child td:last-child {  
-moz-border-radius: 0 0 6px 0;  
-webkit-border-radius: 0 0 6px 0;  
border-radius: 0 0 6px 0;  
}  


</style>
<script>

	function openPdf(dir)
	{
		dir = dir.substring(2,dir.length);
		window.open("/decision-making-platform/" + dir);
		//alert(dir);
	}

</script>
<body>
<table height="580px" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr height="30px">
    <td width="17" valign="top" background="../../web/images/mail_leftbg.gif"><img src="../../web/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../web/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">数据编辑</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../web/images/mail_rightbg.gif"><img src="../../web/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="../../web/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td width="7%">&nbsp;</td>
        <td width="87%" valign="top">
        <?php 
          $event_item = $_GET['event_item'];
		  $process_item = $_GET['process_item'];
		  $plan_item = $_GET['plan_item'];
  
		  $event_item = explode(":",$event_item);
		  $plan_item = explode(":", $plan_item);		  
		  $process_item = explode(":", $process_item);		  

        ?>
          
        <form action="../../index.php?EconomicController/deleteItem/<?php echo $item[0]; ?>" method="post">
		
        <table class="bordered" width="100%"  border="1" cellpadding="0" cellspacing="0" class="line_table">
          <tr style="display:none">
            <td><input id="edit_id" type="text" value="<?php echo $event_item[0];?>"></td>
            <td></td>
          </tr>
		  <tr>
            <th width='30%' class='left_bt2' align='center'>突发事件详情</th>
			<th width='70%' class='left_bt2' align='center'></td>
          </tr>		  
		  <tr>
            <th width='30%' class='left_bt2' align='center'>灾害类型</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_name" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[1]?>" /></td>
          </tr>
		  <tr>
            <th width='30%' class='left_bt2' align='center'>时间</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_name" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[2]?>" /></td>
          </tr>
		  <tr>
            <th width='30%' class='left_bt2' align='center'>地点</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_value" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[3]?>" /></td>
          </tr>	  
		  <tr>
            <th width='30%' class='left_bt2' align='center'>级别</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_unit" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[4]?>" /></td>
          </tr>

		  <tr>
            <th width='30%' class='left_bt2' align='center'>负责人</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_unit" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[6]?>" /></td>
          </tr>		  <tr>
            <th width='30%' class='left_bt2' align='center'>副组长1</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_unit" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[7]?>" /></td>
          </tr>		  <tr>
            <th width='30%' class='left_bt2' align='center'>副组长2</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_unit" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[8]?>" /></td>
          </tr>	
		  <tr>
            <th width='30%' class='left_bt2' align='center'>副组长3</th>
			<td width='70%' class='left_bt2' align='center'><input id="edit_unit" style="width:250px" type="text" class="edit_item" value="<?php echo $event_item[9]?>" /></td>
          </tr>		  
        </form>

        </table>
		
		
		<br/>
		
		
        <form action="../../index.php?EconomicController/deleteItem/<?php echo $event_item[0]; ?>" method="post">
        <table class="bordered" width="100%"  border="1" cellpadding="0" cellspacing="0" class="line_table">
          <tr style="display:none">
            <td><input id="edit_id" type="text" value="<?php echo $event_item[0];?>"></td>
            <td></td>
          </tr>
		  <tr>
            <th width='30%' class='left_bt2' align='center'>时间</th>
			<th width='70%' class='left_bt2' align='center'>实施进度</th>
          </tr>		  
<?php		  
         		foreach ($process_item as $item)
          		{
					//$item = $event_item = explode("/",$event_item);
					$item = explode("/",$item);
					$item[2] = str_replace("^", ":", $item[2]);
					
          			?>
          			<tr onclick="location.href='../../index.php?EconomicController/editPage/<?php echo ($economy_item['0']) ?>'">
          			<?php 
          			echo("<td width='30%' class='item_line' align='center'>".$item[2]."</td>");
					echo("<td width='70%' class='item_line' align='center'>".$item['1']."</td>");
          			echo("</td></tr>");
          		}
?>				
        </form>

        </table>	
		
		<br/>
		
        <form action="../../index.php?EconomicController/deleteItem/<?php echo $item[0]; ?>" method="post">
        <table class="bordered" width="100%"  border="1" cellpadding="0" cellspacing="0" class="line_table">
          <tr style="display:none">
            <td><input id="edit_id" type="text" value="<?php echo $item[0];?>"></td>
            <td></td>
          </tr>


		<?php	
				//var_dump($plan_item);
				$plan_item = explode("~",$plan_item[0]);
				//var_dump($plan_item);
				$implementation_items = explode("|",$plan_item[2]);		
				$handling_items = explode("|",$plan_item[3]);
				$notes_items = explode("|",$plan_item[4]);
				//die();
				$hazardSources_items = explode("|",$plan_item[5]);
				$cases_items = explode("|",$plan_item[6]);
				
				echo "
				  <tr>
					<th width='15%' class='left_bt2' align='center'>应急预案1</th>
					<th width='85%' class='left_bt2' align='center'>组织实施</th>
				  </tr>				
				";
				$i = 1;
				foreach ($implementation_items as $item)
				{
					//echo  $item;		
					echo "<tr><td width='15%' class='item_line' align='center'>$i</td>
					<td width='85%' class='item_line' align='center'>$item</td></tr>";
					$i ++;
				}
				echo "
				  <tr>
					<th width='15%' class='left_bt2' align='center'>应急预案2</th>
					<th width='85%' class='left_bt2' align='center'>补救方案</th>
				  </tr>				
				";
				$i = 1;
				foreach ($handling_items as $item)
				{
					//echo  $item;		
					echo "<tr><td width='15%' class='item_line' align='center'>$i</td>
					<td width='85%' class='item_line' align='center'>$item</td></tr>";
					$i ++;
				}				
				echo "
				  <tr>
					<th width='15%' class='left_bt2' align='center'>应急预案3</th>
					<th width='85%' class='left_bt2' align='center'>注意事项</th>
				  </tr>				
				";
				$i = 1;
				foreach ($notes_items as $item)
				{
					//echo  $item;		
					echo "<tr><td width='15%' class='item_line' align='center'>$i</td>
					<td width='85%' class='item_line' align='center'>$item</td></tr>";
					$i ++;
				}	
				echo "
				  <tr>
					<th width='15%' class='left_bt2' align='center'>应急预案4</th>
					<th width='85%' class='left_bt2' align='center'>重大危险源</th>
				  </tr>				
				";
				$i = 1;
				foreach ($hazardSources_items as $item)
				{
					//echo  $item;		
					$item1 = str_replace("./Doc/zhongdaweixianyuan/", "", $item);
					$item1 = str_replace(".pdf", "", $item1);	
					echo "<tr><td width='15%' class='item_line' align='center'>$i</td>
					<td width='85%' class='item_line' align='center'  onclick=\"openPdf('".$item."')\">".$item1."</td></tr>";
					$i ++;
				}					
				echo "
				  <tr>
					<th width='15%' class='left_bt2' align='center'>应急预案5</th>
					<th width='85%' class='left_bt2' align='center'>案例连接</th>
				  </tr>				
				";
				$i = 1;
				foreach ($cases_items as $item)
				{
					//echo  $item;	
					$item1 = str_replace("./Doc/anlilianjie/", "", $item);
					$item1 = str_replace(".pdf", "", $item1);					
					echo "<tr><td width='15%' class='item_line' align='center'>$i</td>
					<td width='85%' class='item_line' align='center'  onclick=\"openPdf('".$item."')\">".$item1."</td></tr>";
					$i ++;
				}			?>	
        </form>
        
        </table>			

		
        </td>
      </tr>
      <tr height="250px">
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>



      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="../../web/images/icon-mail2.gif" width="16" height="11">咨询邮箱：842232836@qq.com<br>
              <img src="../../web/images/icon-phone.gif" width="17" height="14"> 联系电话：15001767316</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="../../web/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr height="17px">
    <td valign="bottom" background="../../web/images/mail_leftbg.gif"><img src="../../web/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="../../web/images/buttom_bgs.gif"><img src="../../web/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="../../web/mages/mail_rightbg.gif"><img src="../../web/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>